#include <stdio.h>

unsigned long long seed;
void shift_srand(unsigned long long new_seed)
{
    seed = new_seed;
}
int shift_rand()
{
    seed = (seed<<7) + (seed>>7);
    return seed;
}

/*
int main()
{
    int i = 0;
    
    shift_srand(144235678);
    for (i = 0; i < 20; i++){
        printf("%x\n",shift_rand());
    }

    return 0;
}
*/

int main()
{
    shift_srand(23454231);
    unsigned int a;
    unsigned long long b;
    a = shift_rand();
    b = shift_rand();
    b |= (b << 32) | a;

    printf("%x\n",a);
    printf("%lx\n",b);

    return 0;
}
